export const model = {
    id: "",
    pid: "",
    permissionName: "",
    permissionType: 2,
    permissionCode: "",
    useStatus: 0,
    permissionDesc: "",
    actions: "",
    url: "",
}

export const rules = {
    permissionName: [
        { required: true, message: '请输入资源名称', trigger: 'blur' },
    ],
    permissionCode: [
        { required: true, message: '请输入资源编码', trigger: 'blur' },
    ],
    actions: [
        { required: true, message: '请选择操作类型', trigger: 'blur' },
    ],
    // url: [
    //     { required: true, message: '请输入路由path', trigger: 'blur' },
    // ],
}